#ifndef FILE_LOADER_H
#define FILE_LOADER_H

#include <QString>
#include <QList>
#include "individual.h"


typedef enum {
    GENOS_HAPLOID,
    GENOS_DIPLOID_ONE_COLUMN,
    GENOS_DIPLOID_TWO_COLUMN,
    GENOS_TETRAPLOID
} GENOTYPE_INPUT_FORMAT;

class FileLoader {

public:
    FileLoader( QString path );

    bool loadIndividuals( int numStrata, int numSpatial, int numExternal, int numLoci, GENOTYPE_INPUT_FORMAT format );

    inline QList<Individual*> getIndividuals() { return _individuals; }
    inline int count() { return _individuals.count(); }

private:
    QString _path;
    QList< Individual*> _individuals;

};

#endif // FILE_LOADER_H
